import request from '@/utils/request'

// 获取所有信息
export function getAllMyMessage() {
	return request({
		'url': '/message/list',
		headers: {
			isToken: true
		},
		'method': 'get',
		timeout: 20000
	})
}

// 获取详细信息
export function getInfo(msgId) {
	return request({
		'url': '/message/' + msgId,
		headers: {
			isToken: true
		},
		'method': 'get',
		timeout: 20000
	})
}

//删除信息
export function deleteMyMessage(msgIds) {
	return request({
		'url': '/message/' + msgIds,
		headers: {
			isToken: true
		},
		'method': 'delete',
		timeout: 20000
	})
}
